<%--
    Created on : 2019
    Author     : 黄忠
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>搜索员工</title>
    <link rel="stylesheet" href="../CSS/infor.css">
</head>
<body>
<%
    boolean search=false;
    String edu="全部";
    String work="全部";
    String level="全部";
    if(request.getParameter("search")!=null) {
        search = true;
        edu=new String(request.getParameter("edu").getBytes("ISO-8859-1"),"UTF-8");
        work=new String(request.getParameter("work").getBytes("ISO-8859-1"),"UTF-8");
        level=new String(request.getParameter("level").getBytes("ISO-8859-1"),"UTF-8");
    }
%>
<form action="..<%=request.getRequestURI()%>" method="post">
    <table align="center" style="text-align: center">
        <tr>
            <th>
                <select name="edu" size="1">
                    <%if(edu.equals("全部")){%>
                    <option value="全部" selected>全部</option>
                    <%}else{%>
                    <option value="全部">全部</option>
                    <%}%>
                    <%if(edu.equals("博士")){%>
                    <option value="博士" selected>博士</option>
                    <%}else{%>
                    <option value="博士">博士</option>
                    <%}%>
                    <%if(edu.equals("硕士")){%>
                    <option value="硕士" selected>硕士</option>
                    <%}else{%>
                    <option value="硕士">硕士</option>
                    <%}%>
                    <%if(edu.equals("本科")){%>
                    <option value="本科" selected>本科</option>
                    <%}else{%>
                    <option value="本科">本科</option>
                    <%}%>
                    <%if(edu.equals("专科")){%>
                    <option value="专科" selected>专科</option>
                    <%}else{%>
                    <option value="专科">专科</option>
                    <%}%>
                    <%if(edu.equals("高中")){%>
                    <option value="高中" selected>高中</option>
                    <%}else{%>
                    <option value="高中">高中</option>
                    <%}%>
                    <%if(edu.equals("初中")){%>
                    <option value="初中" selected>初中</option>
                    <%}else{%>
                    <option value="初中">初中</option>
                    <%}%>
                    <%if(edu.equals("初中")){%>
                    <option value="初中" selected>初中</option>
                    <%}else{%>
                    <option value="初中">初中</option>
                    <%}%>
                    <%if(edu.equals("小学")){%>
                    <option value="小学" selected>小学</option>
                    <%}else{%>
                    <option value="小学">小学</option>
                    <%}%>
                    <%if(edu.equals("其它")){%>
                    <option value="其它" selected>其它</option>
                    <%}else{%>
                    <option value="其它">其它</option>
                    <%}%>
                </select>
            </th>
            <th>
                <select name="work" size="1">
                    <%if(work.equals("全部")){%>
                    <option value="全部" selected>全部</option>
                    <%}else{%>
                    <option value="全部">全部</option>
                    <%}%>
                    <%if(work.equals("董事长")){%>
                    <option value="董事长" selected>董事长</option>
                    <%}else{%>
                    <option value="董事长">董事长</option>
                    <%}%>
                    <%if(work.equals("总经理")){%>
                    <option value="总经理" selected>总经理</option>
                    <%}else{%>
                    <option value="总经理">总经理</option>
                    <%}%>
                    <%if(work.equals("经理")){%>
                    <option value="经理" selected>经理</option>
                    <%}else{%>
                    <option value="经理">经理</option>
                    <%}%>
                    <%if(work.equals("主管")){%>
                    <option value="主管" selected>主管</option>
                    <%}else{%>
                    <option value="主管">主管</option>
                    <%}%>
                    <%if(work.equals("组长")){%>
                    <option value="组长" selected>组长</option>
                    <%}else{%>
                    <option value="组长">组长</option>
                    <%}%>
                    <%if(work.equals("班长")){%>
                    <option value="班长" selected>班长</option>
                    <%}else{%>
                    <option value="班长">班长</option>
                    <%}%>
                    <%if(work.equals("员工")){%>
                    <option value="员工" selected>员工</option>
                    <%}else{%>
                    <option value="员工">员工</option>
                    <%}%>
                    <%if(work.equals("实习生")){%>
                    <option value="实习生" selected>实习生</option>
                    <%}else{%>
                    <option value="实习生">实习生</option>
                    <%}%>
                    <%if(work.equals("其它")){%>
                    <option value="其它" selected>其它</option>
                    <%}else{%>
                    <option value="其它">其它</option>
                    <%}%>
                </select>
            </th>
            <th>
                <select name="level" size="1">
                    <%if(level.equals("全部")){%>
                    <option value="全部" selected>全部</option>
                    <%}else{%>
                    <option value="全部">全部</option>
                    <%}%>
                    <%if(level.equals("管理员")){%>
                    <option value="管理员" selected>管理员</option>
                    <%}else{%>
                    <option value="管理员">管理员</option>
                    <%}%>
                    <%if(level.equals("员工")){%>
                    <option value="员工" selected>员工</option>
                    <%}else{%>
                    <option value="员工">员工</option>
                    <%}%>
                </select>
            </th>
            <th>
                <input type="submit" name="search" value="搜索">
            </th>
        </tr>
    </table>
</form>
</body>
</html>
